package hello;

import hello.aop.annotation.LogAction;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

	protected final Logger logger = LogManager.getLogger(HelloController.class);
    
	@RequestMapping("/")
	@LogAction("LogAop")
	public String index() {
		return "测试aop使用";
	}

}
